package com.eastfair.common.service;

import com.eastfair.boot.service.SuperService;
import com.eastfair.common.entity.CommonInterfaceCallRecord;

/**
 * <p>
 * 业务接口
 * 
 * </p>
 *
 * @author clm
 * @date 2022-12-29
 */
public interface CommonInterfaceCallRecordService extends SuperService<CommonInterfaceCallRecord> {

    /**
     * 发送请求，记录请求日志.
     *
     * @param httpUrl       the http url
     * @param attr          the attr
     * @param callbackUrl   the callback url
     * @param traceId       the trace id
     * @param romaXHWID     the roma xhwid
     * @param romaXHWAPPKEY the roma xhwappkey
     * @return void
     * @Author clm
     * @Description //处理http请求
     * @Date 15 :27 2023/1/9
     * @Param [httpUrl, attr, callbackUrl, traceId]
     */
    String processHttp(String httpUrl, Object attr, String callbackUrl, String traceId, String romaXHWID, String romaXHWAPPKEY);

    /**
     * Process http string.
     *
     * @param httpUrl       the http url
     * @param attr          the attr
     * @param callbackUrl   the callback url
     * @param romaXHWID     the roma xhwid
     * @param romaXHWAPPKEY the roma xhwappkey
     * @return the string
     */
    String processHttp(String httpUrl, Object attr, String callbackUrl, String romaXHWID, String romaXHWAPPKEY);

    /**
     * Process http string.
     *
     * @param httpUrl       the http url
     * @param attr          the attr
     * @param romaXHWID     the roma xhwid
     * @param romaXHWAPPKEY the roma xhwappkey
     * @return the string
     */
    String processHttp(String httpUrl, Object attr, String romaXHWID, String romaXHWAPPKEY);

    /**
     * Process http string.
     *
     * @param httpUrl       the http url
     * @param attr          the attr
     * @return the string
     */
    String processHttp(String httpUrl, Object attr);
}
